#!/usr/bin/env bash

if [ $# -ne 2 ];then
	echo "Example:"
	echo "$0 file.md output.pdf"
else
	pandoc -N -s --toc --smart --latex-engine=xelatex -V CJKmainfont='Droid Sans Fallback:style=Regular' -V mainfont='DejaVu Sans Mono' -V geometry:margin=1in $1  -o $2
fi
